package com.car.loan.project.xr.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.car.loan.project.xr.domain.LoanAlbum;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * 相册Mapper接口
 *
 * @author ruoyi
 * @date 2019-11-03
 */
@Repository
public interface LoanAlbumMapper extends BaseMapper<LoanAlbum> {

    @Select("select * from xr_loan_album where loan_id =#{loanId}")
    List<LoanAlbum> selectListByLoanId(@Param("loanId") long loanId);

    @Select("select * from xr_loan_album where loan_id =#{loanId} and type in #{types}")
    List<LoanAlbum> selectListByLoanIdAndType(@Param("loanId") long loanId,
        @Param("types") List<Integer> types);

}
